//
//  StarParticle.h
//  StarBugs
//
//  Created by ?? ? on 2/28/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//

#ifndef __STARPARTICLE_H__
#define __STARPARTICLE_H__

#include "cocos2d.h"
#define MAX_PARTICLE 6
class StarParticle : public cocos2d::CCNode
{
private:
    cocos2d::CCSprite *mainSprite;
    cocos2d::CCSprite *particle[MAX_PARTICLE];
    cocos2d::CCPoint speed[MAX_PARTICLE];
    void tick(float dt);
    float timer;
public:
    ~StarParticle();
    StarParticle(cocos2d::CCPoint pt);
};

#define MAX_PARTICLE2   10
class StarParticle2 : public cocos2d::CCNode
{
private:
    cocos2d::CCSprite *mainSprite;
    cocos2d::CCSprite *particle[MAX_PARTICLE2];
    cocos2d::CCPoint speed[MAX_PARTICLE2];
    void tick(float dt);
    float timer;
public:
    ~StarParticle2();
    StarParticle2(cocos2d::CCPoint pt);
    
};

#endif
